home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Button / Include / ButtonDef.h next >
Encoding:
Text File  |  1994-04-21  |  1.6 KB  |  55 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                ButtonDef.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef _BUTTONDEF_
  14. #define _BUTTONDEF_
  15.  
  16. // Kind
  17. #define kSampleButtonKind "Apple:Kind:Framework:Sample:Button"
  18.  
  19. // Class ID
  20. #define kCButtonPartID "appl:framework:sample:buttonpart$class"
  21.  
  22. // Editor User String
  23. #define kSampleButtonEditorUserString "Sample Button 1.0"
  24.  
  25. // Kind User String
  26. #define kSampleButtonKindUserString "Sample Button"
  27.  
  28. // Category User String
  29. #define kSampleButtonCategoryUserString "Control"
  30.  
  31. // Clock OSType
  32. #define kSampleButtonOSType 'BTTN'
  33.  
  34. #ifdef ASLMBUILD
  35. #define FW_kKindCategoryMapId        kNMAPid+1
  36. #define FW_kEditorKindMapId            kNMAPid+2
  37. #define FW_kEditorUserStringMapId    kNMAPid+3
  38. #define FW_kKindUserStringMapId        kNMAPid+4
  39. #define FW_kCategoryUserStringMapId    kNMAPid+5
  40. #define FW_kOldMacOSTypeMapId        kNMAPid+6
  41. #else
  42. // For the static build, the value of FW_kKindCategoryMap must pick up where the last part
  43. // left off. kNMAPid+25 is the last value used by the engineer's test parts.
  44. #define FW_kKindCategoryMapId        kNMAPid+26
  45. #define FW_kEditorKindMapId            kNMAPid+27
  46. #define FW_kEditorUserStringMapId    kNMAPid+28
  47. #define FW_kKindUserStringMapId        kNMAPid+29
  48. #define FW_kCategoryUserStringMapId    kNMAPid+30
  49. #define FW_kOldMacOSTypeMapId        kNMAPid+31
  50. // Our clock part picks up with kNMAPid+32, see CClockDef.h
  51. #endif
  52.  
  53. #endif
  54.  
  55.